﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.SafetyManagementEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/2/5 15:31:28
    /// </summary> 
    [Serializable]
    [ModelMap("Scm_AssessmentScore", new string[] { "Sa_ID" })]
    public class ScmAssessmentscoreInfo : BaseEntity
    {
        public ScmAssessmentscoreInfo()
        {

        }
        
        
        private string _saId;
        /// <summary>
        /// 安全考核ID
        /// </summary>
        [ColumnMap("Sa_ID", System.Data.DbType.String)]
        public string Sa_ID
        {
            get {return _saId;}
            set
            {
                if (object.Equals(this._saId, value) != true)
                {
                    this._saId = value;
                    this.RaisePropertyChanged("Sa_ID");
                }
            }
        }
        
        
        private string _aiId;
        /// <summary>
        /// 项目ID
        /// </summary>
        [ColumnMap("Ai_ID", System.Data.DbType.String)]
        public string Ai_ID
        {
            get {return _aiId;}
            set
            {
                if (object.Equals(this._aiId, value) != true)
                {
                    this._aiId = value;
                    this.RaisePropertyChanged("Ai_ID");
                }
            }
        }
        
        

        private string _auId;
        /// <summary>
        /// 安全考核与被考核单位关联主键
        /// </summary>
        [ColumnMap("Au_ID", System.Data.DbType.String)]
        public string Au_ID
        {
            get {return _auId;}
            set
            {
                if (object.Equals(this._auId, value) != true)
                {
                    this._auId = value;
                    this.RaisePropertyChanged("Au_ID");
                }
            }
        }
        
        
        private bool _asInclude;
        /// <summary>
        /// 本次考核是否包含该项目
        /// </summary>
        [ColumnMap("As_Include", System.Data.DbType.Boolean)]
        public bool As_Include
        {
            get {return _asInclude;}
            set
            {
                if (object.Equals(this._asInclude, value) != true)
                {
                    this._asInclude = value;
                    this.RaisePropertyChanged("As_Include");
                }
            }
        }
        
        
        private bool _asUnitinclude;
        /// <summary>
        /// 本次考核本单位是否包含该项目
        /// </summary>
        [ColumnMap("As_UnitInclude", System.Data.DbType.Boolean)]
        public bool As_UnitInclude
        {
            get {return _asUnitinclude;}
            set
            {
                if (object.Equals(this._asUnitinclude, value) != true)
                {
                    this._asUnitinclude = value;
                    this.RaisePropertyChanged("As_UnitInclude");
                }
            }
        }
        
        
        private decimal? _asDeduct;
        /// <summary>
        /// 扣分
        /// </summary>
        [ColumnMap("As_Deduct", System.Data.DbType.Decimal)]
        public decimal? As_Deduct
        {
            get {return _asDeduct;}
            set
            {
                if (object.Equals(this._asDeduct, value) != true)
                {
                    this._asDeduct = value;
                    this.RaisePropertyChanged("As_Deduct");
                }
            }
        }


        private decimal? _asScore;
        /// <summary>
        /// 得分
        /// </summary>
        [ColumnMap("As_Score", System.Data.DbType.Decimal)]
        public decimal? As_Score
        {
            get {return _asScore;}
            set
            {
                if (object.Equals(this._asScore, value) != true)
                {
                    this._asScore = value;
                    this.RaisePropertyChanged("As_Score");
                }
            }
        }
        
        
        private string _asDeductreason;
        /// <summary>
        /// 扣分原因
        /// </summary>
        [ColumnMap("As_DeductReason", System.Data.DbType.String)]
        public string As_DeductReason
        {
            get {return _asDeductreason;}
            set
            {
                if (object.Equals(this._asDeductreason, value) != true)
                {
                    this._asDeductreason = value;
                    this.RaisePropertyChanged("As_DeductReason");
                }
            }
        }
        private string _aiOrder;
        /// <summary>
        /// 考核项目序号
        /// </summary>
        [ColumnMap("Ai_Order", System.Data.DbType.String)]
        public string Ai_Order
        {
            get { return _aiOrder; }
            set
            {
                if (object.Equals(this._aiOrder, value) != true)
                {
                    this._aiOrder = value;
                    this.RaisePropertyChanged("Ai_Order");
                }
            }
        }
        private string _scdName;
        /// <summary>
        /// 考核类型名
        /// </summary>
        [ColumnMap("Scd_Name", System.Data.DbType.String)]
        public string Scd_Name
        {
            get { return _scdName; }
            set
            {
                if (object.Equals(this._scdName, value) != true)
                {
                    this._scdName = value;
                    this.RaisePropertyChanged("Scd_Name");
                }
            }
        }
        private string _aiProject;
        /// <summary>
        /// 考核项目名
        /// </summary>
        [ColumnMap("Ai_Project", System.Data.DbType.String)]
        public string Ai_Project
        {
            get { return _aiProject; }
            set
            {
                if (object.Equals(this._aiProject, value) != true)
                {
                    this._aiProject = value;
                    this.RaisePropertyChanged("Ai_Project");
                }
            }
        }
        private decimal _aiAllscore;
        /// <summary>
        /// 项目总分
        /// </summary>
        [ColumnMap("Ai_AllScore", System.Data.DbType.Decimal)]
        public decimal Ai_AllScore
        {
            get { return _aiAllscore; }
            set
            {
                if (object.Equals(this._aiAllscore, value) != true)
                {
                    this._aiAllscore = value;
                    this.RaisePropertyChanged("Ai_AllScore");
                }
            }
        }
    }
}



